<?php
class BotDetectionValidator extends CValidator {

    protected function validateAttribute($object, $attribute) {
        if (!empty($object->$attribute)) {
            $this->addError($object, $attribute, '');
        }
    }

}//end class